﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="en">
<head>
<base href="<%=basePath%>">
<%
	response.setHeader("cache-control", "public");
%>
<!-- jsp文件头和头部 -->
<%@ include file="../system/admin/top.jsp"%>
<script type="text/javascript" src="static/js/myjs/head.js${getTime}"></script>
<script type="text/javascript">
	$(function() {

	})
</script>
</head>

<body>

	<div style="width: 1900px">
			<form action="<%=basePath%>/faxijianmian/auditPassList.do"
				method="post" name="pageForm" id="pageForm"  class="form-inline">
				<!-- 高级查询=============================================================== -->
				<div style="border: 1px solid darkgray;padding: 6px; ">
	               <div class="form-line" style="line-height: 40px">
						<label class="input-group-addon">退免申请编号：</label>
	                       		<input style="width: 150px" type="text" class="form-control" name="reduApplyId" value="${pd.reduApplyId}" />
						<label class="input-group-addon">催收编号：</label>
	                       		<input style="width: 150px" type="text" class="form-control" name="callLoanNid" value="${pd.callLoanNid}" />
						<label class="input-group-addon">借款人姓名：</label>
	                       		<input style="width: 150px" type="text" class="form-control" name="realName" value="${pd.realName}" />
						<label class="input-group-addon">借款编号：</label>
	                       		<input style="width: 150px" type="text" class="form-control" name="borrowNid" value="${pd.borrowNid}" />
	                    <span style="font-size: medium;">减免状态:</span>
								<select class="form-control" id="reduStatus" data-placeholder="减免状态" name="reduStatus" style="width: 150px" value="${pd.reduStatus}">
									<option value="">全部</option>
									<option value="0"
										<c:if test="${'0' eq pd.reduStatus}">selected</c:if>>未使用</option>
									<option value="1"
										<c:if test="${'1' eq pd.reduStatus}">selected</c:if>>已使用</option>
									<option value="2"
										<c:if test="${'2' eq pd.reduStatus}">selected</c:if>>已过期</option>
							   </select>
	                    <span style="font-size: medium;">退回状态:</span>
								<select class="form-control" id="returnStatus" data-placeholder="退回状态" name="returnStatus" style="width: 150px" value="${pd.returnStatus}">
									<option value="">全部</option>
									<option value="0"
										<c:if test="${'0' eq pd.returnStatus}">selected</c:if>>审核中</option>
									<option value="1"
										<c:if test="${'1' eq pd.returnStatus}">selected</c:if>>成功</option>
									<option value="2"
										<c:if test="${'2' eq pd.returnStatus}">selected</c:if>>失败</option>
							   </select>
	               </div>
	               <label class="btn btn-primary btn-small" onclick="search();">查询</label>
	           </div>
	           <br>
				<!-- 高级查询=============================================================== -->
				<table id="table_report"
					class="table table-bordered table-hover">
					<thead>
						<tr>
							<th>序号</th>
							<th>退免申请编号</th>
							<th>催收编号</th>
							<th>借款产品名称</th>
							<th>借款人姓名</th>
							<th>借款编号</th>
							<th>申请时间</th>
							<th>审核时间</th>
							<th>有效期</th>
							<th>申请类型</th>
							<th>申请金额</th>
							<th>减免状态</th>
							<th>退回状态</th>
							<th>申请人</th>
							<th>审核人</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody>
						<!-- 开始循环 -->
						<c:choose>
							<c:when test="${not empty pageList}">
								<c:if test="${true}">
									<c:forEach items="${pageList}" var="var" varStatus="vs">
										<tr>
											<td>${vs.count}</td>
											<td>${var.reduApplyId}</td>
											<td>${var.callLoanNid}</td>
											<td>${var.productName}</td>
											<td>${var.realName}</td>
											<td>${var.borrowNid}</td>
											<td><fmt:formatDate value="${var.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
											<td><fmt:formatDate value="${var.auditTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
											<td><fmt:formatDate value="${var.reduDay}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
											<td>
												<c:if test="${var.type=='1'}"><span>减免</span></c:if>
												<c:if test="${var.type=='2'}"><span>退回</span></c:if>
											</td>
											<td>${var.reduOverdueFee}</td>
											<td>
												<c:if test="${var.reduStatus=='0'}">未使用</c:if>
												<c:if test="${var.reduStatus=='1'}"><span style="color: green">已使用</span></c:if>
												<c:if test="${var.reduStatus=='2'}"><span style="color: red">已过期</span></c:if>
											</td>
											<td>
												<c:if test="${var.returnStatus=='0'}">审核中</c:if>
												<c:if test="${var.returnStatus=='1'}"><span style="color: green">成功</span></c:if>
												<c:if test="${var.returnStatus=='2'}"><span style="color: red">失败</span></c:if>
											</td>
											<td>${var.name}</td>
											<td>${var.auditName}</td>
											<td>
												<div>	
													<c:if test="${true}">
														<a onclick="lookVerifyRemark('${var.verifyRemark}');" style="color: blue;cursor: pointer;">查看备注</a>
													</c:if>
												</div></td>
										</tr>
									</c:forEach>
								</c:if>
								<c:if test="${false}">
									<tr>
										<td colspan="100" class="center">您无权查看</td>
									</tr>
								</c:if>
							</c:when>
							<c:otherwise>
								<tr class="main_info">
									<td colspan="100" class="center">没有相关数据</td>
								</tr>
							</c:otherwise>
						</c:choose>
					</tbody>
				</table>

				<div class="page-header position-relative">
					<table style="width: 100%;">
						<tr>
							<td style="vertical-align: top;"><div class="pagination"
									style="float: right; padding-top: 0px; margin-top: 0px;">${page.pageStr}</div></td>
						</tr>
					</table>
				</div>
			</form>
		</div>
	<!-- 模态框 -->
	<div id="motaikuang" class="modal fade" tabindex="-1" role="dialog" style="display: none;">
	  <div class="modal-dialog" role="document">
	    <div class="modal-content">
	      <div class="modal-header">
	        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	        <h4 class="modal-title">审核说明</h4>
	      </div>
	      <div class="modal-body">
	        <p id="verifyRemark"></p>
	      </div>
	      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
	    </div><!-- /.modal-content -->
	  </div><!-- /.modal-dialog -->
	</div><!-- /.modal -->
	<!-- 模态框 -->
	<!-- 返回顶部  -->
	<a href="#" id="btn-scroll-up" class="btn btn-small btn-inverse"> <i
		class="icon-double-angle-up icon-only"></i>
	</a>
	<!-- 引入 -->
	<script type="text/javascript">window.jQuery || document.write("<script src='static/js/jquery-1.9.1.min.js'>\x3C/script>");</script>
	<script src="static/js/bootstrap.min.js"></script>
	<script src="static/js/ace-elements.min.js"></script>
	<script src="static/js/ace.min.js"></script>
	
	<script type="text/javascript" src="static/js/chosen.jquery.min.js"></script>
	<!-- 下拉框 -->
	<script type="text/javascript"
		src="static/js/bootstrap-datepicker.min.js"></script>
	<!-- 日期框 -->
	<script type="text/javascript" src="static/js/bootbox.min.js"></script>
	<!-- 确认窗口 -->
	<!-- 引入 -->
	<script type="text/javascript" src="static/js/jquery.tips.js"></script>
	<script type="text/javascript">
		$(top.hangge());
		//检索
		function search(){
			top.jzts();
			$("#pageForm").submit();
		}
		//查看备注
		function lookVerifyRemark(verifyRemark){
			//打开模态框
			$("#verifyRemark").html(verifyRemark);
			$("#motaikuang").modal("show");
		}
	</script>

</body>
</html>

